<?php
include 'configs/config.php';


if (!isset($_REQUEST['delete'])) {
	$_REQUEST['delete'] = 0;
}

if ($_REQUEST['delete'] > 0) {
	$agenda->delete($_REQUEST['delete']);
}

$smarty->assign('delete',$_REQUEST['delete']);
$smarty->assign('mid','delete.tpl');
$smarty->display('layout.tpl');
?>